package com.tiger.db.service;


import com.tiger.db.entity.AppCategory;
import com.tiger.db.mapper.AppCategoryMapper;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class DAppCategoryService extends BaseService<AppCategoryMapper, AppCategory> {
    public List<AppCategory> selectAvailableCategoryByRelateds(Long[] relateds) {
        return getBaseMapper().selectAvailableCategoryByRelateds(Arrays.stream(relateds).map(String::valueOf).toArray(String[]::new));
    }

    public List<AppCategory> selectCategoryByRelateds(Long[] relateds) {
        return getBaseMapper().selectCategoryByRelateds(Arrays.stream(relateds).map(String::valueOf).toArray(String[]::new));
    }



}
